package com.xb.loan.encryptor.mina.factory;


import com.xb.loan.encryptor.bean.Packet;
import com.xb.loan.encryptor.mina.decoder.BinaryDecoder;
import com.xb.loan.encryptor.mina.encoder.BinaryEncoder;
import org.apache.mina.filter.codec.demux.DemuxingProtocolCodecFactory;

public class BinaryProtocolFactory extends DemuxingProtocolCodecFactory{
	
	public BinaryProtocolFactory(){
		
		super.addMessageDecoder(new BinaryDecoder());
		super.addMessageEncoder(Packet.class, new BinaryEncoder());
	}
	
}
